package uit.uthuoc.dal;

import android.text.Spannable;
import android.text.SpannableString;
import android.text.Spanned;

public class NameValueDTO {
	public NameValueDTO(NameValueDTO source) {
		this.mName = source.getName();
		this.mValue = source.getValue();
	}
	
	public NameValueDTO() {
		this.mName = "";
		this.mValue = new SpannableString("");
		
	}
	
	public String getName() {
		return mName;
	}
	public void setName(String name) {
		mName = name;
	}
	public Spannable getValue() {
		return mValue;
	}
	public void setValue(String value) {
		mValue = new SpannableString(value);
	}
	public void setValue(Spannable value) {
		mValue = value;
	}
	public void setValue(Spanned value) {
		mValue = (Spannable) value;
	}
	private String mName;
	private Spannable mValue;
}
